package com.wwmz.liskov.substitution.simple;

/**
 * Created by wumz on 2020/9/14 21:29
 */
public class Square implements Quadrangle {

    private long length;

    public long getLength() {
        return length;
    }

    public void setLength(long length) {
        this.length = length;
    }

    @Override
    public long getHeight() {
        return getLength();
    }
//    @Override
//    public void setHeight(long height) {
//        setLength(height);
//    }
    @Override
    public long getWidth() {
        return getLength();
    }
//    @Override
//    public void setWidth(long width) {
//        setLength(width);
//    }
}
